package cn.wing.gui;

import net.minecraft.client.gui.screens.MenuScreens;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent;

import static cn.wing.PlayTradingMain.MOD_ID;
import static cn.wing.PlayTradingMain.TRADING_MENU_TYPE;

@Mod.EventBusSubscriber(modid = MOD_ID, value = Dist.CLIENT, bus = Mod.EventBusSubscriber.Bus.MOD)

public class MyScreenMenu {

    @SubscribeEvent
    public static void onClientSetup(FMLClientSetupEvent event) {
//        event.enqueueWork(() -> MenuScreens.register(MY_CONTAINER_TYPE.get(), PlayTradingScreen::new));
        event.enqueueWork(() -> MenuScreens.register(TRADING_MENU_TYPE.get(), TradingScreen::new));
    }
}
